import mockjs from 'mockjs';
import { delay } from 'roadhog-api-doc';
import defaultSettings from '@/defaultSettings';

const proxy = {
  // 'POST pmc/pms/RuleCfgController/showRuleTree': (req, res) => {
  //   res.send({
  //     stackTrace: null,
  //     errCode: null,
  //     errMessage: null,
  //     data: {
  //       rule_tree: [
  //         {
  //           id: '101',
  //           pid: '0',
  //           name: '流程匹配目录',
  //           type: 'directory',
  //           isLeaf: false,
  //           children: [
  //             {
  //               id: '1002',
  //               pid: '101',
  //               name: '订单流程方案2',
  //               type: 'plan',
  //               isLeaf: true,
  //               children: [],
  //             },
  //             {
  //               id: '1001',
  //               pid: '101',
  //               name: '订单流程方案',
  //               type: 'plan',
  //               isLeaf: false,
  //               children: [
  //                 {
  //                   icon: 'hu',
  //                   id: '2910',
  //                   name: '集中预约流程规则',
  //                   pid: '1001',
  //                   planId: '1001',
  //                   statucCd: '00A',
  //                   type: 'rule',
  //                   isLeaf: true,
  //                 },
  //                 {
  //                   icon: 'yi',
  //                   id: '22903',
  //                   name: '挂起调度流程规则',
  //                   pid: '1001',
  //                   planId: '1001',
  //                   statucCd: '00A',
  //                   type: 'rule',
  //                   isLeaf: true,
  //                 },
  //                 {
  //                   icon: 'bing',
  //                   id: '22902',
  //                   name: '超时调度流程规则',
  //                   pid: '1001',
  //                   planId: '1001',
  //                   statucCd: '00A',
  //                   type: 'rule',
  //                   isLeaf: true,
  //                 },
  //               ],
  //             },
  //           ],
  //         },
  //         {
  //           id: '102',
  //           pid: '0',
  //           name: 'OC子订单目录',
  //           type: 'directory',
  //           isLeaf: false,
  //           children: [
  //             {
  //               id: '1003',
  //               pid: '102',
  //               name: '子订单流程启动方案',
  //               type: 'plan',
  //               isLeaf: false,
  //               children: [
  //                 {
  //                   icon: 'bing',
  //                   id: '1906191432001',
  //                   name: '主单拆单规则',
  //                   pid: '1002',
  //                   planId: '1906191432001',
  //                   statucCd: '00A',
  //                   type: 'rule',
  //                   isLeaf: true,
  //                 },
  //                 {
  //                   icon: 'hu',
  //                   id: '1906041751007',
  //                   name: '流程结束规则',
  //                   pid: '1002',
  //                   planId: '1906041751007',
  //                   statucCd: '00A',
  //                   type: 'rule',
  //                   isLeaf: true,
  //                 },
  //               ],
  //             },
  //           ],
  //         },
  //       ],
  //     },
  //     success: true,
  //   });
  // },
  'POST /oc/RuleCfgController/showPlanCond.do': (req, res) => {
    res.send({
      page: 1,
      list: [
        {
          ruleId: '2910',
          ruleCode: '2910',
          ruleName: '集中预约流程',
          resourceType: null,
          implType: null,
          ruleScript: null,
          expDate: '2099-12-31 00:00:00.0',
          effDate: '2020-04-14 00:00:00.0',
          ruleDesc: '集中预约流程',
          createDate: '2020-04-14 11:09:26.0',
          createUser: null,
          statusDate: null,
          statusUser: null,
          statusCd: '00A',
          pid: '1023',
          assId: '19',
          assName: '匹配启动流程',
          assCode: null,
          exePath: 'matchAndStartOrdWorkFlowAssembly',
          assType: null,
          planId: '1023',
          ruleRel: null,
          childrenList: null,
          objRuleExeLogList: null,
          level: 0,
          autoExe: '0',
          relType: '3',
          priority: '2',
          relyonRuleId: null,
          ruleRelId: '2903',
          autoExeName: '自动',
          relTypeName: '全部互斥',
          id: '2910',
        },
        {
          ruleId: '10903',
          ruleCode: '10903',
          ruleName: '订单全流程',
          resourceType: null,
          implType: null,
          ruleScript: null,
          expDate: '2099-12-31 00:00:00.0',
          effDate: '2020-04-20 00:00:00.0',
          ruleDesc: null,
          createDate: '2020-04-20 15:08:02.0',
          createUser: null,
          statusDate: null,
          statusUser: null,
          statusCd: '00A',
          pid: '1023',
          assId: '19',
          assName: '匹配启动流程',
          assCode: null,
          exePath: 'matchAndStartOrdWorkFlowAssembly',
          assType: null,
          planId: '1023',
          ruleRel: null,
          childrenList: null,
          objRuleExeLogList: null,
          level: 0,
          autoExe: '0',
          relType: '3',
          priority: '1',
          relyonRuleId: null,
          ruleRelId: '8903',
          autoExeName: '自动',
          relTypeName: '全部互斥',
          id: '10903',
        },
        {
          ruleId: '10904',
          ruleCode: '10904',
          ruleName: '一网通和三线质态监控调度流程',
          resourceType: null,
          implType: null,
          ruleScript: null,
          expDate: '2099-12-31 00:00:00.0',
          effDate: '2020-04-20 00:00:00.0',
          ruleDesc: null,
          createDate: '2020-04-20 15:08:56.0',
          createUser: null,
          statusDate: null,
          statusUser: null,
          statusCd: '00A',
          pid: '1023',
          assId: '19',
          assName: '匹配启动流程',
          assCode: null,
          exePath: 'matchAndStartOrdWorkFlowAssembly',
          assType: null,
          planId: '1023',
          ruleRel: null,
          childrenList: null,
          objRuleExeLogList: null,
          level: 0,
          autoExe: '0',
          relType: '3',
          priority: '1',
          relyonRuleId: null,
          ruleRelId: '8904',
          autoExeName: '自动',
          relTypeName: '全部互斥',
          id: '10904',
        },
        {
          ruleId: '22904',
          ruleCode: '22904',
          ruleName: '驳回调度流程',
          resourceType: null,
          implType: null,
          ruleScript: null,
          expDate: '2099-12-31 00:00:00.0',
          effDate: '2020-04-26 00:00:00.0',
          ruleDesc: null,
          createDate: '2020-04-26 09:40:29.0',
          createUser: null,
          statusDate: null,
          statusUser: null,
          statusCd: '00A',
          pid: '1023',
          assId: '19',
          assName: '匹配启动流程',
          assCode: null,
          exePath: 'matchAndStartOrdWorkFlowAssembly',
          assType: null,
          planId: '1023',
          ruleRel: null,
          childrenList: null,
          objRuleExeLogList: null,
          level: 0,
          autoExe: '0',
          relType: '3',
          priority: '1',
          relyonRuleId: null,
          ruleRelId: '18904',
          autoExeName: '自动',
          relTypeName: '全部互斥',
          id: '22904',
        },
        {
          ruleId: '22902',
          ruleCode: '22902',
          ruleName: '超时调度流程',
          resourceType: null,
          implType: null,
          ruleScript: null,
          expDate: '2099-12-31 00:00:00.0',
          effDate: '2020-04-26 00:00:00.0',
          ruleDesc: null,
          createDate: '2020-04-26 09:39:17.0',
          createUser: null,
          statusDate: null,
          statusUser: null,
          statusCd: '00A',
          pid: '1023',
          assId: '19',
          assName: '匹配启动流程',
          assCode: null,
          exePath: 'matchAndStartOrdWorkFlowAssembly',
          assType: null,
          planId: '1023',
          ruleRel: null,
          childrenList: null,
          objRuleExeLogList: null,
          level: 0,
          autoExe: '0',
          relType: '3',
          priority: '1',
          relyonRuleId: null,
          ruleRelId: '18902',
          autoExeName: '自动',
          relTypeName: '全部互斥',
          id: '22902',
        },
        {
          ruleId: '22903',
          ruleCode: '22903',
          ruleName: '挂起调度流程',
          resourceType: null,
          implType: null,
          ruleScript: null,
          expDate: '2099-12-31 00:00:00.0',
          effDate: '2020-04-26 00:00:00.0',
          ruleDesc: null,
          createDate: '2020-04-26 09:40:06.0',
          createUser: null,
          statusDate: null,
          statusUser: null,
          statusCd: '00A',
          pid: '1023',
          assId: '19',
          assName: '匹配启动流程',
          assCode: null,
          exePath: 'matchAndStartOrdWorkFlowAssembly',
          assType: null,
          planId: '1023',
          ruleRel: null,
          childrenList: null,
          objRuleExeLogList: null,
          level: 0,
          autoExe: '0',
          relType: '3',
          priority: '1',
          relyonRuleId: null,
          ruleRelId: '18903',
          autoExeName: '自动',
          relTypeName: '全部互斥',
          id: '22903',
        },
        {
          ruleId: '10902',
          ruleCode: '10902',
          ruleName: '电子协议超时调度流程',
          resourceType: null,
          implType: null,
          ruleScript: null,
          expDate: '2099-12-31 00:00:00.0',
          effDate: '2020-04-20 00:00:00.0',
          ruleDesc: null,
          createDate: '2020-04-20 15:07:05.0',
          createUser: null,
          statusDate: null,
          statusUser: null,
          statusCd: '00A',
          pid: '1023',
          assId: '19',
          assName: '匹配启动流程',
          assCode: null,
          exePath: 'matchAndStartOrdWorkFlowAssembly',
          assType: null,
          planId: '1023',
          ruleRel: null,
          childrenList: null,
          objRuleExeLogList: null,
          level: 0,
          autoExe: '0',
          relType: '3',
          priority: '1',
          relyonRuleId: null,
          ruleRelId: '8902',
          autoExeName: '自动',
          relTypeName: '全部互斥',
          id: '10902',
        },
      ],
    });
  },
  'POST /oc/RuleCfgController/showRuleCond.do': (req, res) => {
    res.send({
      final_cond_list: [
        [
          {
            pre_log: '',
            opt_type: '',
            right_brackets: '',
            attrValue: 'OCFLOW20200414180752',
            attr: {
              attrId: '2',
              objId: '1',
              attrCode: 'flow_id',
              attrName: '流程',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'FLOW_ID',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '集中预约流程[OCFLOW20200414180752](1.11(Activated))',
            left_brackets: '',
          },
          {
            pre_log: '',
            opt_type: '',
            right_brackets: '',
            attrValue: 'OCFLOW20200420092553',
            attr: {
              attrId: '2',
              objId: '1',
              attrCode: 'flow_id',
              attrName: '流程',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'FLOW_ID',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '电子协议超时调度流程[OCFLOW20200420092553](1.6(Activated))',
            left_brackets: '',
          },
          {
            pre_log: '',
            opt_type: '',
            right_brackets: '',
            attrValue: 'OCFLOW20200420092609',
            attr: {
              attrId: '2',
              objId: '1',
              attrCode: 'flow_id',
              attrName: '流程',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'FLOW_ID',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '订单全流程[OCFLOW20200420092609](1.9(Activated))',
            left_brackets: '',
          },
        ],
        [
          {
            pre_log: '',
            opt_type: '',
            right_brackets: '',
            attrValue: '1',
            attr: {
              attrId: '4',
              objId: '1',
              attrCode: 'order_type',
              attrName: '子订单类型',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'ORDER_TYPE',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '销售单',
            left_brackets: '',
          },
          {
            pre_log: '',
            opt_type: '',
            right_brackets: '',
            attrValue: '2',
            attr: {
              attrId: '4',
              objId: '1',
              attrCode: 'order_type',
              attrName: '子订单类型',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'ORDER_TYPE',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '商机单',
            left_brackets: '',
          },
        ],
      ],
      rule_cond_combobox: [
        {
          attrValueId: '400000000020',
          attrId: '4000000010',
          attrValue: '!=',
          attrValueName: '不等于',
          attrValueDesc: '不等于',
          parentAttrValueId: null,
          attrCode: 'RULE_COND_COMBOBOX',
          sortBy: 1,
          paramCode: [],
        },
        {
          attrValueId: '400000000021',
          attrId: '4000000010',
          attrValue: '<',
          attrValueName: '小于',
          attrValueDesc: '小于',
          parentAttrValueId: null,
          attrCode: 'RULE_COND_COMBOBOX',
          sortBy: 1,
          paramCode: [],
        },
        {
          attrValueId: '400000000028',
          attrId: '4000000010',
          attrValue: 'not matches',
          attrValueName: '不匹配',
          attrValueDesc: '不匹配',
          parentAttrValueId: null,
          attrCode: 'RULE_COND_COMBOBOX',
          sortBy: 1,
          paramCode: [],
        },
        {
          attrValueId: '400000000022',
          attrId: '4000000010',
          attrValue: '<=',
          attrValueName: '小于等于',
          attrValueDesc: '小于等于',
          parentAttrValueId: null,
          attrCode: 'RULE_COND_COMBOBOX',
          sortBy: 2,
          paramCode: [],
        },
        {
          attrValueId: '400000000023',
          attrId: '4000000010',
          attrValue: '==',
          attrValueName: '等于',
          attrValueDesc: '等于',
          parentAttrValueId: null,
          attrCode: 'RULE_COND_COMBOBOX',
          sortBy: 3,
          paramCode: [],
        },
        {
          attrValueId: '400000000024',
          attrId: '4000000010',
          attrValue: '>',
          attrValueName: '大于',
          attrValueDesc: '大于',
          parentAttrValueId: null,
          attrCode: 'RULE_COND_COMBOBOX',
          sortBy: 4,
          paramCode: [],
        },
        {
          attrValueId: '400000000025',
          attrId: '4000000010',
          attrValue: '>=',
          attrValueName: '大于等于',
          attrValueDesc: '大于等于',
          parentAttrValueId: null,
          attrCode: 'RULE_COND_COMBOBOX',
          sortBy: 5,
          paramCode: [],
        },
        {
          attrValueId: '400000000026',
          attrId: '4000000010',
          attrValue: 'matches',
          attrValueName: '匹配',
          attrValueDesc: '匹配',
          parentAttrValueId: null,
          attrCode: 'RULE_COND_COMBOBOX',
          sortBy: 6,
          paramCode: [],
        },
        {
          attrValueId: '400000000027',
          attrId: '4000000010',
          attrValue: 'in',
          attrValueName: '存在',
          attrValueDesc: '存在',
          parentAttrValueId: null,
          attrCode: 'RULE_COND_COMBOBOX',
          sortBy: 7,
          paramCode: [],
        },
      ],
      cal_cond_list: [
        [
          {
            pre_log: '||',
            opt_type: '!=',
            right_brackets: ')',
            attrValue: 'OCFLOW20200414180752',
            attr: {
              attrId: '2',
              objId: '1',
              attrCode: 'flow_id',
              attrName: '流程',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'FLOW_ID',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '集中预约流程[OCFLOW20200414180752](1.11(Activated))',
            left_brackets: '(',
          },
          {
            pre_log: '||',
            opt_type: '!=',
            right_brackets: ')',
            attrValue: 'OCFLOW20200420092553',
            attr: {
              attrId: '2',
              objId: '1',
              attrCode: 'flow_id',
              attrName: '流程',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'FLOW_ID',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '电子协议超时调度流程[OCFLOW20200420092553](1.6(Activated))',
            left_brackets: '(',
          },
          {
            pre_log: '||',
            opt_type: '!=',
            right_brackets: ')',
            attrValue: 'OCFLOW20200420092609',
            attr: {
              attrId: '2',
              objId: '1',
              attrCode: 'flow_id',
              attrName: '流程',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'FLOW_ID',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '订单全流程[OCFLOW20200420092609](1.9(Activated))',
            left_brackets: '(',
          },
        ],
        [
          {
            pre_log: '||',
            opt_type: '<',
            right_brackets: ')',
            attrValue: '1',
            attr: {
              attrId: '4',
              objId: '1',
              attrCode: 'order_type',
              attrName: '子订单类型',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'ORDER_TYPE',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '销售单',
            left_brackets: '(',
          },
          {
            pre_log: '||',
            opt_type: '<',
            right_brackets: ')',
            attrValue: '2',
            attr: {
              attrId: '4',
              objId: '1',
              attrCode: 'order_type',
              attrName: '子订单类型',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'ORDER_TYPE',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '商机单',
            left_brackets: '(',
          },
          {
            pre_log: '||',
            opt_type: '<',
            right_brackets: ')',
            attrValue: '3',
            attr: {
              attrId: '4',
              objId: '1',
              attrCode: 'order_type',
              attrName: '子订单类型',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'ORDER_TYPE',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '预接入单',
            left_brackets: '(',
          },
        ],
        [
          {
            pre_log: null,
            opt_type: 'not matches',
            right_brackets: null,
            attrValue: '2',
            attr: {
              attrId: '5',
              objId: '1',
              attrCode: 'order_busi_type',
              attrName: '子订单业务类型',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'ORDER_BUSI_TYPE',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '变更',
            left_brackets: '(',
          },
          {
            pre_log: null,
            opt_type: 'not matches',
            right_brackets: null,
            attrValue: '3',
            attr: {
              attrId: '5',
              objId: '1',
              attrCode: 'order_busi_type',
              attrName: '子订单业务类型',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'ORDER_BUSI_TYPE',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '注销',
            left_brackets: '(',
          },
        ],
        [
          {
            pre_log: null,
            opt_type: '>',
            right_brackets: null,
            attrValue: '1110',
            attr: {
              attrId: '6',
              objId: '1',
              attrCode: 'order_status',
              attrName: '子订单状态',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'ORDER_STATUS',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '调度单生成中',
            left_brackets: null,
          },
          {
            pre_log: null,
            opt_type: '>',
            right_brackets: null,
            attrValue: '1130',
            attr: {
              attrId: '6',
              objId: '1',
              attrCode: 'order_status',
              attrName: '子订单状态',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'ORDER_STATUS',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '派施工单中',
            left_brackets: null,
          },
          {
            pre_log: null,
            opt_type: '>',
            right_brackets: null,
            attrValue: '1131',
            attr: {
              attrId: '6',
              objId: '1',
              attrCode: 'order_status',
              attrName: '子订单状态',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'ORDER_STATUS',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '派施工单完成',
            left_brackets: null,
          },
        ],
      ],
    });
  },
  'POST /oc/RuleCfgController/showCondTree.do': (req, res) => {
    res.send({
      tree_list: [
        {
          children: [
            {
              data: {
                attrId: '20',
                objId: '3',
                attrCode: 'city_id',
                attrName: '地市',
                attrType: 'fact',
                statusCd: null,
                createDate: null,
                createUser: null,
                statusDate: null,
                statusUser: null,
                remark: null,
                eleType: 'checkbox',
                stypeCode: 'DC_CITY_CODE',
                ruleId: null,
                objCode: 'dispatchRuleFact',
                objName: '派单规则匹配',
              },
              name: '地市',
              id: '20',
              type: 'attr',
            },
            {
              data: {
                attrId: '21',
                objId: '3',
                attrCode: 'area_id',
                attrName: '区县',
                attrType: 'fact',
                statusCd: null,
                createDate: null,
                createUser: null,
                statusDate: null,
                statusUser: null,
                remark: null,
                eleType: 'checkbox',
                stypeCode: 'DC_AREA_CODE',
                ruleId: null,
                objCode: 'dispatchRuleFact',
                objName: '派单规则匹配',
              },
              name: '区县',
              id: '21',
              type: 'attr',
            },
            {
              data: {
                attrId: '22',
                objId: '3',
                attrCode: 'order_from',
                attrName: '订单来源',
                attrType: 'fact',
                statusCd: null,
                createDate: null,
                createUser: null,
                statusDate: null,
                statusUser: null,
                remark: null,
                eleType: 'checkbox',
                stypeCode: 'ORDER_FROM',
                ruleId: null,
                objCode: 'dispatchRuleFact',
                objName: '派单规则匹配',
              },
              name: '订单来源',
              id: '22',
              type: 'attr',
            },
            {
              data: {
                attrId: '23',
                objId: '3',
                attrCode: 'tache_code',
                attrName: '订单环节',
                attrType: 'fact',
                statusCd: null,
                createDate: null,
                createUser: null,
                statusDate: null,
                statusUser: null,
                remark: null,
                eleType: 'checkbox',
                stypeCode: 'ORDER_TACHE',
                ruleId: null,
                objCode: 'dispatchRuleFact',
                objName: '派单规则匹配',
              },
              name: '订单环节',
              id: '23',
              type: 'attr',
            },
            {
              data: {
                attrId: '24',
                objId: '3',
                attrCode: 'busi_type',
                attrName: '业务类型',
                attrType: 'fact',
                statusCd: null,
                createDate: null,
                createUser: null,
                statusDate: null,
                statusUser: null,
                remark: null,
                eleType: 'checkbox',
                stypeCode: 'ORDER_BUSI_TYPE',
                ruleId: null,
                objCode: 'dispatchRuleFact',
                objName: '派单规则匹配',
              },
              name: '业务类型',
              id: '24',
              type: 'attr',
            },
          ],
          name: '通用对象',
          id: '3',
          type: 'obj',
          nocheck: true,
          open: true,
        },
        {
          data: {
            objId: '1906111007001',
            clazz: 'com.ztesoft.bss.oc.core.rule.fact.WorkflowRuleFact',
            objName: '主流程匹配',
            objType: 'fact',
            extPack: null,
            statusCd: '00A',
            createDate: null,
            createUser: null,
            statusDate: null,
            statusUser: null,
            remark: '主流程匹配',
            objCode: 'workFlowFact',
            className: 'WorkFlowFact',
            neverRunFlag: null,
            objAttrList: [
              {
                attrId: '1906111039001',
                objId: '1906111007001',
                attrCode: 'main_ord_from',
                attrName: '订单来源',
                attrType: 'fact',
                statusCd: null,
                createDate: null,
                createUser: null,
                statusDate: null,
                statusUser: null,
                remark: null,
                eleType: 'checkbox',
                stypeCode: 'ORDER_FROM',
                ruleId: null,
                objCode: 'workFlowFact',
                objName: '主流程匹配',
              },
              {
                attrId: '1906111039002',
                objId: '1906111007001',
                attrCode: 'main_ord_type',
                attrName: '订单类型',
                attrType: 'fact',
                statusCd: null,
                createDate: null,
                createUser: null,
                statusDate: null,
                statusUser: null,
                remark: null,
                eleType: 'checkbox',
                stypeCode: 'ORDER_TYPE',
                ruleId: null,
                objCode: 'workFlowFact',
                objName: '主流程匹配',
              },
            ],
          },
          children: [
            {
              data: {
                attrId: '1906111039001',
                objId: '1906111007001',
                attrCode: 'main_ord_from',
                attrName: '订单来源',
                attrType: 'fact',
                statusCd: null,
                createDate: null,
                createUser: null,
                statusDate: null,
                statusUser: null,
                remark: null,
                eleType: 'checkbox',
                stypeCode: 'ORDER_FROM',
                ruleId: null,
                objCode: 'workFlowFact',
                objName: '主流程匹配',
              },
              name: '订单来源',
              id: '1906111039001',
              type: 'attr',
            },
            {
              data: {
                attrId: '1906111039002',
                objId: '1906111007001',
                attrCode: 'main_ord_type',
                attrName: '订单类型',
                attrType: 'fact',
                statusCd: null,
                createDate: null,
                createUser: null,
                statusDate: null,
                statusUser: null,
                remark: null,
                eleType: 'checkbox',
                stypeCode: 'ORDER_TYPE',
                ruleId: null,
                objCode: 'workFlowFact',
                objName: '主流程匹配',
              },
              name: '订单类型',
              id: '1906111039002',
              type: 'attr',
            },
          ],
          name: '个性对象',
          id: '1906111007001',
          type: 'obj',
          nocheck: true,
          open: true,
        },
      ],
    });
  },
  'POST /oc/SystemFlowManage/attrSpecTableData.do': (req, res) => {
    res.send({
      pageNum: 1,
      pageSize: 5,
      size: 5,
      startRow: 1,
      endRow: 10,
      total: 2,
      pages: 7,
      list: [
        {
          attrSpecCode: 'gzbm1000001',
          attrSpecName: '业务预算',
          attrSpecType: '文本框',
        },
        {
          attrSpecCode: 'gzbm1000002',
          attrSpecName: '商机类型',
          attrSpecType: '下拉框',
        },
      ],
      prePage: 0,
      nextPage: 2,
      isFirstPage: true,
      isLastPage: false,
      hasPreviousPage: false,
      hasNextPage: true,
      navigatePages: 8,
      navigatepageNums: [1, 2, 3, 4, 5, 6, 7],
      navigateFirstPage: 1,
      navigateLastPage: 7,
      firstPage: 1,
      lastPage: 7,
    });
  },
  'POST /oc/SystemFlowManage/attrValueTableData.do': (req, res) => {
    res.send({
      pageNum: 1,
      pageSize: 5,
      size: 5,
      startRow: 1,
      endRow: 10,
      total: 2,
      pages: 7,
      list: [
        {
          attrValueId: '1',
          attrValueName: '标准化商机',
          attrValue: 'xsa123466',
        },
        {
          attrValueId: '2',
          attrValueName: 'ICT商机',
          attrValue: 'xsa654321',
        },
      ],
      prePage: 0,
      nextPage: 2,
      isFirstPage: true,
      isLastPage: false,
      hasPreviousPage: false,
      hasNextPage: true,
      navigatePages: 8,
      navigatepageNums: [1, 2, 3, 4, 5, 6, 7],
      navigateFirstPage: 1,
      navigateLastPage: 7,
      firstPage: 1,
      lastPage: 7,
    });
  },
  'POST /oc/RuleCfgController/findRuleRelList.do': (req, res) => {
    res.send();
  },
};

export default delay(proxy, defaultSettings.delay);
